package org.jeecg.modules.device.com.tianhang.config;

import com.ctg.ag.sdk.biz.AepDeviceCommandClient;
import com.ctg.ag.sdk.biz.AepDeviceManagementClient;
import com.ctg.ag.sdk.biz.AepProductManagementClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class WingConfig {

    final static private String appKey = "Z4nH8DwO2i7";
    final static private String appSecret = "PymQfikuOr";

    @Bean
    public AepDeviceCommandClient aepDeviceCommandClient () {
        return AepDeviceCommandClient.newClient()
                .appKey(appKey)
                .appSecret(appSecret)
                .build();
    }

    @Bean
    public AepProductManagementClient aepProductManagementClient () {
          return AepProductManagementClient.newClient()
                .appKey(appKey).appSecret(appSecret)
                .build();
    }

    @Bean
    public AepDeviceManagementClient aepDeviceManagementClient() {
        return AepDeviceManagementClient.newClient()
                .appKey(appKey).appSecret(appSecret)
                .build();
    }
}

